jQuery.fn.mark = function(id,markarray,imgstr,opts){
	opts = jQuery.extend({
		callback:function(){return false;}
	},opts||{});
	
	function setmark(){
		var obj = $.parseJSON(markarray);
		for(var i=0;i<obj.length;i++){
			writemark(obj[i].x,obj[i].y,obj[i].id,obj[i].type)
		}
	}
	
	function writemark(x,y,id,type){
		panel.append("<div id='mark_" + id + "' class=\"point\" style=\"left: "+x+"px; top: "+y+"px;position:absolute;cursor:pointer;\"><img src=\""+imgstr+"\" alt=\"\" width=\"28\"></div>")
	}
	
	var panel = jQuery(this);
	setmark();
	opts.callback(this);
}
